<?php
  class Mapper{
    static protected $tbl_name;
    protected $tblName;
    protected $db;
    public function __construct(){
      $this->db = $this->connect();
      $this->set_tblName(self::$tbl_name);
    }
    public function get_tblName(){
      return $this->tblName;
    }
    public function set_tblName($name){
      $this->tblName = $name;
    }
    static protected function connect(){
      return DBConnect::getDBConnect();
    }
  }
?>